/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.tawriq.assignment2.question1.Polymorphism;

/**
 *
 * @author Tawriq
 */
public class Invoice implements Payable{
    private int quantity = 0;
    private double pricePerItem = 0;
    
    public int getQuantity(){
        return quantity;
    }
    
    public double getPricePerItem(){
        return pricePerItem;
    }
    
    @Override
    public double getPaymentAmount(){
        return (getQuantity()*getPricePerItem());
    };
}
